<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>登陆</title>
<LINK REL="SHORTCUT ICON" HREF="${basePath}/favicon.ico">
<link href="../resources/css/main.css" rel="stylesheet" type="text/css">
<link href="../resources/css/sub.css" rel="stylesheet" type="text/css">
<link href="../resources/css/validationEngine.jquery.css" rel="stylesheet" type="text/css">
<script src="../resources/js/jquery/jquery-1.6.1.js" type="text/javascript"></script>
<script src="../resources/js/jquery/plugin/alert/jquery.blockUI.js" type="text/javascript"></script>
<script src="../resources/js/jquery/jquery.validationEngine-zh_CN.js" type="text/javascript" charset="utf-8"></script>
<script src="../resources/js/jquery/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
<script src="../resources/js/common/login.js" type="text/javascript" charset="utf-8"></script>
 
<script type="text/javascript" >
function  CloseThis(){
	window.close();
}
function callback(str ){
	if(str==="ok"){
		$.growlUI('成功提示', '用户登陆成功!'); 
		setTimeout(CloseThis,1700);
	}else{
		$.growlUI('错误提示', '请确认输入用户密码是否正确!');
	}
}
function doLogin(){
 	$.post("${basePath}/security/loginst", {userId: $("#userId").val(), password :$("#password").val()},callback ,"html");
 }
 
 function doLogout(){
    loginform.action ="../security/logout";
    loginform.submit();
 }
function loginPop(){
	if($("#loginform").validationEngine('validate')){
		doLogin();
	}
}
jQuery(document).ready(function(){
         jQuery("#loginform").validationEngine('attach');
     });
</script>
</head>

<body>

<table width="488" height="284" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="15" height="15" align="left" valign="top" background="../resources/images/sub2/sub2_popup1_02.gif"><img src="../resources/images/sub2/sub2_popup1_01.gif" width="15" height="15"></td>
    <td width="458" background="../resources/images/sub2/sub2_popup1_02.gif"></td>
    <td width="15" align="right" valign="top" background="../resources/images/sub2/sub2_popup1_02.gif"><img src="../resources/images/sub2/sub2_popup1_04.gif" width="15" height="15"></td>
  </tr>
  <tr>
    <td height="254" background="../resources/images/sub2/sub2_popup1_13.gif"></td>
    <td align="left" valign="top"><table width="458" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="popup_bg"><span class="popup_txt1">系统登陆页面</span></td>
      </tr>
      <tr>
        <td class="td_hight2"></td>
      </tr>
      <tr>
        <td height="90" class="td_padding2"><table width="463" height="130" border="0" cellpadding="0" cellspacing="0">
          <form id="loginform" name="loginform" >
          <tr>
            <td width="11" height="31" class="td_height1"><img src="../resources/images/main/main_42.gif" width="3" height="3"></td>
            <td width="68" class="title_txt1">用户名</td>
            <td width="10" align="center"><img src="../resources/images/common/main_98-103.gif" width="5" height="12"></td>
            <td width="374"><label>
              <input name="userId" id="userId" type="text" class="validate[required] loginweb_input1">
            </label></td>
          </tr>
          <tr>
            <td height="32" class="td_height1"><img src="../resources/images/main/main_42.gif" width="3" height="3"></td>
            <td class="title_txt1">密码</td>
            <td align="center"><img src="../resources/images/common/main_98-103.gif" width="5" height="12"></td>
            <td><input name="password" id="password" type="password" class="loginweb_input1"></td>
          </tr>
        </table>
        </from></td>
        </tr>
      <tr>
        <td height="57" align="center" valign="middle"><table width="171" height="22" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="98"><a href="javascript:loginPop();"><img src="../resources/images/btn/tuangou_popup_07.gif" width="82" height="22"></a></td>
            <td width="82"><a href="javascript:CloseThis();"><img src="../resources/images/btn/tuangou_popup_09.gif" width="82" height="22"></a></td>
          </tr>
        </table></td>
      </tr>


    </table></td>
    <td background="../resources/images/sub2/sub2_popup1_08.gif"></td>
  </tr>
  <tr>
    <td height="15" align="left" valign="bottom" background="../resources/images/sub2/sub2_popup1_02_2.gif"><img src="../resources/images/sub2/sub2_popup1_07-107.gif" width="15" height="15"></td>
    <td background="../resources/images/sub2/sub2_popup1_02_2.gif"></td>
    <td align="right" valign="bottom" background="../resources/images/sub2/sub2_popup1_02_2.gif"> <img src="../resources/images/sub2/sub2_popup1_109.gif" width="15" height="15"> </td>
  </tr>
</table>

</body>
</html>
